package spring.boot.fastdep.jwt.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import spring.boot.fastdep.jwt.common.Results;
import spring.boot.fastdep.jwt.service.RegService;
import spring.boot.fastdep.jwt.vo.TUserRegVO;

@RestController
public class RegController {

    @Autowired
    private RegService regService;

    @PostMapping("/reg/phone/code")
    public Results regPhoneCode(@RequestBody(required = false) TUserRegVO vo) {
        return regService.regPhoneCode(vo);
    }


}
